import request from "@/utils/request";




export function add(data) {
  return request({
    url: "/sinohis/pension/staff/careworker",
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/staff/careworker/page/condition",
    method: 'get',
    params

  });

}
export function revise(data) {
  return request({
    url: "/sinohis/pension/staff/careworker",
    method: 'put',
    data

  });

}
export function del(params) {
  return request({
    url: "/sinohis/pension/staff/careworker/"+params.number,
    method: 'DELETE',
    params

  });

}

//查询机构下病区列表
export function findinpatient(params) {
  return request({
    url: "/sinohis/pension/profession/inpatientmanager/inpatientward/findinpatient/"+params.institutionNumber,
    method: 'get',
    params

  });

}
